﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MedicWeb {
    public partial class SessionController : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
            var action = Request.QueryString["action"];
            switch (action) {
                case "exit": {
                    Session.RemoveAll();
                    Response.Redirect("~/Login.aspx");
                    break;
                }
                default: {
                    Response.Redirect("~/forms/empty.aspx");
                    break;
                }
            }
        }
    }
}